package com.yike.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yike.product.entity.GoodsUnit;
import com.yike.product.param.GoodsUnitPageParam;

import com.yike.product.vo.GoodsUnitVo;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
 * 商品单位 Mapper 接口
 *
 * @author Sakura
 * @since 2024-10-18
 */
@Mapper
public interface GoodsUnitMapper extends BaseMapper<GoodsUnit> {

    GoodsUnitVo getGoodsUnitVo(@Param("id") Long id);

    IPage<GoodsUnitVo> getGoodsUnitList(@Param("page") Page page, @Param("param") GoodsUnitPageParam param);


}
